|
Download
FAQ History |
|
API
Search Feedback |
J2EE 1.4 Application Server
This section contains a brief summary of the components comprising the J2EE 1.4 Application Server, the configuration steps required before using the components to build and deploy the tutorial examples, and instructions for starting and stopping the main components. The last section in this chapter discusses how to run the PointBase database server; other chapters explain how to use the remaining components.
Components
The J2EE 1.4 Application Server contains the components listed in Table 3-1
Setting Up To Build and Deploy Tutorial Examples
You use
asantto build the tutorial examples and configure the application server. In order to run theasantscripts, you must configure your environment and the tutorial properties files as follows:
- Add
<JAVA_HOME>/binto the front of your path.- Add
<J2EE_HOME>/binand<J2EE_HOME>/share/binto the front of your path so that J2EE 1.4 Application Server components overrides other installations.- Set the
j2ee.homeproperty in the file<INSTALL>/j2eetutorial14/examples/common/build.propertiesto the location of your J2EE 1.4 Application Server installation. The build process uses thej2ee.homeproperty to include the J2EE library archives in the classpath. The J2EE library archive is the file<J2EE_HOME>/lib/j2ee.jar. If you wish to use an IDE or thejavaccompiler to compile J2EE applications, you must add this JAR to your classpath.- Set the
admin.userandadmin.passwordproperties in the file<INSTALL>/j2eetutorial14/examples/common/build.propertiesto the values you specified when you installed the J2EE 1.4 Application Server. The build scripts use these values when you invoke an administration task such as creating a database pool. The default value foradmin.useris set to the installer's default value, which isadmin.Starting and Stopping the J2EE Application Server
To start and stop the J2EE application server, you use the
asadminutility. To start the J2EE application server, open a terminal window or command prompt and execute this command:A domain is a set of one or more application server instances managed by one administration server. Associated with a domain is:
You specified these values when you installed the J2EE 1.4 Application Server. The examples in this tutorial assume that you have chosen the default port.
With no arguments, the
start-domaincommand initiates the default domain, which is domain1.On Windows, from the Start menu, choose
Programs
Sun Microsystems
J2EE 1.4 SDK
Start Application Server
After the server has started, you will see the following output:
To stop the J2EE application server, execute the following command:
On Windows, from the Start menu, choose
Programs
Sun Microsystems
J2EE 1.4 SDK
Stop Application Server
When the server has stopped you will see the following output:
Starting the deploytool Utility
The
deploytoolutility is the GUI tool used to package Web applications, specify deployment descriptor elements, and deploy applications on the J2EE application server. To startdeploytool, open a terminal window or command prompt and execute this command:On Windows, from the Start menu, choose
Programs
Sun Microsystems
J2EE 1.4 SDK
Deploytool
|
Download
FAQ History |
|
API
Search Feedback |
All of the material in The J2EE 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.